package com.eurasia.assignment.infrastructure.repository;

import java.util.List;
import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.eurasia.assignment.infrastructure.entity.SubmissionEntity;

@Repository
public interface SubmissionRepository extends JpaRepository<SubmissionEntity, Long> {
    List<SubmissionEntity> findByProjectId(Long projectId);
    List<SubmissionEntity> findBySubmitterId(String submitterId);
    Optional<SubmissionEntity> findByIdAndSubmitterId(Long id, String submitterId);
} 